#include "coordinate.h"
#include <iostream>

coordinate::coordinate(int x, int y)
{
	m_iX = x;
	m_iY = y;
}

void coordinate::printCoordinate()
{
	std::cout << "x:" << m_iX << "\ty:" << m_iY << std::endl;
}

ostream  &operator << (ostream &out, coordinate &coor)
{
	std::cout << "("<< coor.m_iX <<"," << coor.m_iY << ")"<< std::endl;
	return out;
}